/*
  * @file Point.cpp
  * @author Thibault Merle et Guillaume Poussel
  */
#include <iostream>
#include <algorithm>

#include "Point.h"

std::ostream& operator<<(std::ostream& os, const Point& point) {
  return os << '(' << point._x << ", " << point._y << ')';
}

bool operator==(const Point& p1, const Point& p2) {
  return p1._x == p2._x && p1._y == p2._y;
}

bool operator<(const Point& p1, const Point& p2) {
  return p1._x < p2._x || (p1._x == p2._x && p1._y < p2._y);
}

bool Point::is_on_radius(const Point* origine) const {
  return _y == origine->y() && _x >= origine->x();
}

